package com.sora.sora.security.login.mapper;

import com.sora.sora.common.model.entity.AuthenticationEntity;
//import com.sora.sora.common.model.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

//import java.util.Map;

@Mapper
public interface LoginMapper {

//    UserEntity queryByName(String name);
//
//    UserEntity queryByEmail(String email);

    String queryEmailByName(String name);

    String queryNameByEmail(String email);

    Integer queryIdByName(String name);

    AuthenticationEntity queryByName(String name);

    AuthenticationEntity queryByEmail(String email);

    AuthenticationEntity queryById(int id);

    int updatePasswordByEmail(String password, String email);
}
